<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>embedme: libemb/inc/JSONData.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_574d9269cd334a9d02d8928365303d98.html">libemb</a></li><li class="navelem"><a class="el" href="dir_207aad82934689048a9003fb51f06f7f.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">JSONData.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_j_s_o_n_data_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * This file is part of libemb.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * libemb is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * libemb is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * along with libemb.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * Project: Embedme</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * Author : FergusZeng</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * Email  : cblock@126.com</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * git    : https://git.oschina.net/cblock/embedme</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * Copyright 2014 @ ShenZhen ,China</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">*******************************************************************************/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __JSON_DATA_H__</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __JSON_DATA_H__</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;cJSON.h&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_j_s_o_n_node.html">   35</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_j_s_o_n_node.html">JSONNode</a>{</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <a class="code" href="class_j_s_o_n_node.html#a4332edc9aa95b561ddab12f77d000039">JSONNode</a>();</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <a class="code" href="class_j_s_o_n_node.html#a6c2284bd6ce621636f9ba02d161b4030">~JSONNode</a>();</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <a class="code" href="class_j_s_o_n_node.html#a4332edc9aa95b561ddab12f77d000039">JSONNode</a>(<span class="keyword">const</span> <a class="code" href="class_j_s_o_n_node.html">JSONNode</a>&amp; node);</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    std::string <a class="code" href="class_j_s_o_n_node.html#a1d5507e362f049c46a8cbaf4cf44a730">serialize</a>(<span class="keywordtype">bool</span> fmt=<span class="keyword">false</span>);</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#ae9ace6642be9ee68f1a06586ae2415da">hasSubNode</a>(<span class="keyword">const</span> std::string nodeName);</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#a87597bba651e9d48861be2178e37926f">isNullNode</a>();</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#a53f873c32ad08ed4ded611213a46d448">isArrayNode</a>();</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    sint32 <a class="code" href="class_j_s_o_n_node.html#a7d60d2fd3887f4a2b33ebbdd578aeaa8">getArraySize</a>();</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <a class="code" href="class_j_s_o_n_node.html">JSONNode</a> <a class="code" href="class_j_s_o_n_node.html#a9e9e78a2ba11a3fc05120c52ef80aed9">operator[]</a>(<span class="keyword">const</span> std::string nodeName);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <a class="code" href="class_j_s_o_n_node.html">JSONNode</a> <a class="code" href="class_j_s_o_n_node.html#a9e9e78a2ba11a3fc05120c52ef80aed9">operator[]</a>(sint32 index);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#a0d11b8b05d71de2597ac4abf08d219a8">boolValue</a>();</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    sint32 <a class="code" href="class_j_s_o_n_node.html#af3cd36a1709f29078d5aa66b5cf21169">intValue</a>();</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_j_s_o_n_node.html#ab0d2ef99e6a84b764708d136e36fbf80">doubleValue</a>();</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    std::string <a class="code" href="class_j_s_o_n_node.html#a43a1eb525136c9c101975ff4212acfce">stringValue</a>();</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <a class="code" href="class_j_s_o_n_node.html">JSONNode</a> nodeValue();</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#adb4b70260a7a19410b09458f934dcb5b">addSubNode</a>(<span class="keyword">const</span> std::string nodeName=<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#adb4b70260a7a19410b09458f934dcb5b">addSubNode</a>(<span class="keywordtype">bool</span> value,<span class="keyword">const</span> std::string nodeName=<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#adb4b70260a7a19410b09458f934dcb5b">addSubNode</a>(<span class="keywordtype">int</span> value,<span class="keyword">const</span> std::string nodeName=<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#adb4b70260a7a19410b09458f934dcb5b">addSubNode</a>(<span class="keywordtype">double</span> value,<span class="keyword">const</span> std::string nodeName=<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#adb4b70260a7a19410b09458f934dcb5b">addSubNode</a>(<span class="keyword">const</span> std::string stringValue,<span class="keyword">const</span> std::string nodeName=<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#adb4b70260a7a19410b09458f934dcb5b">addSubNode</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>**arrayString,sint32 count,<span class="keyword">const</span> std::string nodeName=<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#adb4b70260a7a19410b09458f934dcb5b">addSubNode</a>(<span class="keyword">const</span> <span class="keywordtype">int</span>* intArray,sint32 count,<span class="keyword">const</span> std::string nodeName=<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#adb4b70260a7a19410b09458f934dcb5b">addSubNode</a>(<span class="keyword">const</span> <span class="keywordtype">float</span>* floatArray,sint32 count,<span class="keyword">const</span> std::string nodeName=<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#adb4b70260a7a19410b09458f934dcb5b">addSubNode</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>* doubleArray,sint32 count,<span class="keyword">const</span> std::string nodeName=<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_node.html#adb4b70260a7a19410b09458f934dcb5b">addSubNode</a>(<a class="code" href="class_j_s_o_n_node.html">JSONNode</a>* <span class="keywordtype">object</span>,<span class="keyword">const</span> std::string nodeName=<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    cJSON* m_object;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    std::string m_name;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_j_s_o_n_data.html">JSONData</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;};</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="class_j_s_o_n_data.html">   72</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_j_s_o_n_data.html">JSONData</a>{</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <a class="code" href="class_j_s_o_n_data.html#a9f46424eb4d3c4826c8cb76e84bfee5d">JSONData</a>();</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    ~<a class="code" href="class_j_s_o_n_data.html">JSONData</a>();</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <a class="code" href="class_j_s_o_n_node.html">JSONNode</a>* <a class="code" href="class_j_s_o_n_data.html#a871e3e2607e7fe0cc01d6db7eaa9d215">initWithObjectFormat</a>();</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <a class="code" href="class_j_s_o_n_node.html">JSONNode</a>* <a class="code" href="class_j_s_o_n_data.html#ae01c9932621412711e4fabb79a4bac2f">initWithArrayFormat</a>();</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <a class="code" href="class_j_s_o_n_node.html">JSONNode</a>* <a class="code" href="class_j_s_o_n_data.html#a653a8af11dd25bfed0663cf4f04305f8">initWithDataString</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* jdata);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <a class="code" href="class_j_s_o_n_node.html">JSONNode</a>* <a class="code" href="class_j_s_o_n_data.html#a967f7a7b32b4383530d5d443d4a15bb7">initWithContentOfFile</a>(<span class="keyword">const</span> std::string fileName);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_j_s_o_n_data.html#a9f1f54caaa2a8e27bfad7544912ffdda">saveAsFile</a>(<span class="keyword">const</span> std::string fileName,<span class="keywordtype">bool</span> fmt=<span class="keyword">false</span>);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    std::string <a class="code" href="class_j_s_o_n_data.html#ab63641ef987c9e3abb417a8e0df54153">serialize</a>(<span class="keywordtype">bool</span> fmt=<span class="keyword">false</span>);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <a class="code" href="class_j_s_o_n_node.html">JSONNode</a>* m_rootNode;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;};</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="class_j_s_o_n_data_html_a967f7a7b32b4383530d5d443d4a15bb7"><div class="ttname"><a href="class_j_s_o_n_data.html#a967f7a7b32b4383530d5d443d4a15bb7">JSONData::initWithContentOfFile</a></div><div class="ttdeci">JSONNode * initWithContentOfFile(const std::string fileName)</div><div class="ttdoc">读取JSON文件内容进行初始化 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:534</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_adb4b70260a7a19410b09458f934dcb5b"><div class="ttname"><a href="class_j_s_o_n_node.html#adb4b70260a7a19410b09458f934dcb5b">JSONNode::addSubNode</a></div><div class="ttdeci">bool addSubNode(const std::string nodeName=&quot;&quot;)</div><div class="ttdoc">加入NULL子结点 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:271</div></div>
<div class="ttc" id="class_j_s_o_n_data_html_a653a8af11dd25bfed0663cf4f04305f8"><div class="ttname"><a href="class_j_s_o_n_data.html#a653a8af11dd25bfed0663cf4f04305f8">JSONData::initWithDataString</a></div><div class="ttdeci">JSONNode * initWithDataString(const char *jdata)</div><div class="ttdoc">读取JSON字符串进行初始化 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:517</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_a43a1eb525136c9c101975ff4212acfce"><div class="ttname"><a href="class_j_s_o_n_node.html#a43a1eb525136c9c101975ff4212acfce">JSONNode::stringValue</a></div><div class="ttdeci">std::string stringValue()</div><div class="ttdoc">返回结点的字符串值 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:238</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_a9e9e78a2ba11a3fc05120c52ef80aed9"><div class="ttname"><a href="class_j_s_o_n_node.html#a9e9e78a2ba11a3fc05120c52ef80aed9">JSONNode::operator[]</a></div><div class="ttdeci">JSONNode operator[](const std::string nodeName)</div><div class="ttdoc">根据结点名称nodeName获取子结点 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:157</div></div>
<div class="ttc" id="class_j_s_o_n_data_html"><div class="ttname"><a href="class_j_s_o_n_data.html">JSONData</a></div><div class="ttdoc">JSON数据类. </div><div class="ttdef"><b>Definition:</b> JSONData.h:72</div></div>
<div class="ttc" id="class_j_s_o_n_data_html_ae01c9932621412711e4fabb79a4bac2f"><div class="ttname"><a href="class_j_s_o_n_data.html#ae01c9932621412711e4fabb79a4bac2f">JSONData::initWithArrayFormat</a></div><div class="ttdeci">JSONNode * initWithArrayFormat()</div><div class="ttdoc">初始化JSONData为数组形式 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:500</div></div>
<div class="ttc" id="class_j_s_o_n_data_html_a871e3e2607e7fe0cc01d6db7eaa9d215"><div class="ttname"><a href="class_j_s_o_n_data.html#a871e3e2607e7fe0cc01d6db7eaa9d215">JSONData::initWithObjectFormat</a></div><div class="ttdeci">JSONNode * initWithObjectFormat()</div><div class="ttdoc">初始化JSONData为对象形式 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:483</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_af3cd36a1709f29078d5aa66b5cf21169"><div class="ttname"><a href="class_j_s_o_n_node.html#af3cd36a1709f29078d5aa66b5cf21169">JSONNode::intValue</a></div><div class="ttdeci">sint32 intValue()</div><div class="ttdoc">返回结点的整形值 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:210</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_a7d60d2fd3887f4a2b33ebbdd578aeaa8"><div class="ttname"><a href="class_j_s_o_n_node.html#a7d60d2fd3887f4a2b33ebbdd578aeaa8">JSONNode::getArraySize</a></div><div class="ttdeci">sint32 getArraySize()</div><div class="ttdoc">根据index获取数组的大小 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:141</div></div>
<div class="ttc" id="class_j_s_o_n_node_html"><div class="ttname"><a href="class_j_s_o_n_node.html">JSONNode</a></div><div class="ttdoc">JSON结点类. </div><div class="ttdef"><b>Definition:</b> JSONData.h:35</div></div>
<div class="ttc" id="class_j_s_o_n_data_html_a9f46424eb4d3c4826c8cb76e84bfee5d"><div class="ttname"><a href="class_j_s_o_n_data.html#a9f46424eb4d3c4826c8cb76e84bfee5d">JSONData::JSONData</a></div><div class="ttdeci">JSONData()</div><div class="ttdoc">JSONData构造函数 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:458</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_ae9ace6642be9ee68f1a06586ae2415da"><div class="ttname"><a href="class_j_s_o_n_node.html#ae9ace6642be9ee68f1a06586ae2415da">JSONNode::hasSubNode</a></div><div class="ttdeci">bool hasSubNode(const std::string nodeName)</div><div class="ttdoc">判断是否存在nodeName结点 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:97</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_a53f873c32ad08ed4ded611213a46d448"><div class="ttname"><a href="class_j_s_o_n_node.html#a53f873c32ad08ed4ded611213a46d448">JSONNode::isArrayNode</a></div><div class="ttdeci">bool isArrayNode()</div><div class="ttdoc">判断结点是否是数组型结点 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:126</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_a1d5507e362f049c46a8cbaf4cf44a730"><div class="ttname"><a href="class_j_s_o_n_node.html#a1d5507e362f049c46a8cbaf4cf44a730">JSONNode::serialize</a></div><div class="ttdeci">std::string serialize(bool fmt=false)</div><div class="ttdoc">返回串行化后的字符串 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:71</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_a4332edc9aa95b561ddab12f77d000039"><div class="ttname"><a href="class_j_s_o_n_node.html#a4332edc9aa95b561ddab12f77d000039">JSONNode::JSONNode</a></div><div class="ttdeci">JSONNode()</div><div class="ttdoc">JSONNode构造函数 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:38</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_a87597bba651e9d48861be2178e37926f"><div class="ttname"><a href="class_j_s_o_n_node.html#a87597bba651e9d48861be2178e37926f">JSONNode::isNullNode</a></div><div class="ttdeci">bool isNullNode()</div><div class="ttdoc">判断结点是否是NULL结点 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:112</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_ab0d2ef99e6a84b764708d136e36fbf80"><div class="ttname"><a href="class_j_s_o_n_node.html#ab0d2ef99e6a84b764708d136e36fbf80">JSONNode::doubleValue</a></div><div class="ttdeci">double doubleValue()</div><div class="ttdoc">返回结点的浮点值 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:224</div></div>
<div class="ttc" id="class_j_s_o_n_data_html_ab63641ef987c9e3abb417a8e0df54153"><div class="ttname"><a href="class_j_s_o_n_data.html#ab63641ef987c9e3abb417a8e0df54153">JSONData::serialize</a></div><div class="ttdeci">std::string serialize(bool fmt=false)</div><div class="ttdoc">串行化JSONData成字符串 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:604</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_a0d11b8b05d71de2597ac4abf08d219a8"><div class="ttname"><a href="class_j_s_o_n_node.html#a0d11b8b05d71de2597ac4abf08d219a8">JSONNode::boolValue</a></div><div class="ttdeci">bool boolValue()</div><div class="ttdoc">返回结点的布尔值 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:194</div></div>
<div class="ttc" id="class_j_s_o_n_node_html_a6c2284bd6ce621636f9ba02d161b4030"><div class="ttname"><a href="class_j_s_o_n_node.html#a6c2284bd6ce621636f9ba02d161b4030">JSONNode::~JSONNode</a></div><div class="ttdeci">~JSONNode()</div><div class="ttdoc">JSONNode析构函数 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:61</div></div>
<div class="ttc" id="class_j_s_o_n_data_html_a9f1f54caaa2a8e27bfad7544912ffdda"><div class="ttname"><a href="class_j_s_o_n_data.html#a9f1f54caaa2a8e27bfad7544912ffdda">JSONData::saveAsFile</a></div><div class="ttdeci">bool saveAsFile(const std::string fileName, bool fmt=false)</div><div class="ttdoc">写入JSON数据到文件中 </div><div class="ttdef"><b>Definition:</b> JSONData.cpp:565</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2016年 七月 7日 星期四 19:49:37 , 为 embedme使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
